﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRMS_Model;

namespace DataManager
{
    public class DegreeManager
    {
        public static void AddDegree(Degree degreeObj)
        {
            using (HRMSEntities DegreeEntity = new HRMSEntities())
            {
                Degree degree = new Degree();
                degree.DegreeName = degreeObj.DegreeName;
                DegreeEntity.Degrees.AddObject(degree);

            }
        }
        public static void DeleteDegree(Degree degreeObj)
        {
            using (HRMSEntities DegreeEntity = new HRMSEntities())
            {
                Degree degree = new Degree();
                degree.DegreeName = degreeObj.DegreeName;
                DegreeEntity.Degrees.DeleteObject(degree);
            }
        }
        
    }
}
